package com.lzy.cloud.permission.service;

import com.lzy.cloud.permission.dtos.RoleResourcePermissionDto;

import java.util.List;

/**
 * Created by WIN7 on 2018/5/17.
 */
public interface RoleResourcePermissionService {

    /**
     * 新增
     * @param roleResourcePermissionDto
     * @return
     */
    Boolean insert(RoleResourcePermissionDto roleResourcePermissionDto);

    /**
     * 更新
     * @param roleResourcePermissionDto
     * @return
     */
    Boolean update(RoleResourcePermissionDto roleResourcePermissionDto);

    /**
     * 删除
     * @param roleResourcePermissionDto
     * @return
     */
    Boolean delete(RoleResourcePermissionDto roleResourcePermissionDto);

    /**
     * 根据条件删除
     * @param roleResourcePermissionDto
     * @return
     */
    Boolean deleteByKey(RoleResourcePermissionDto roleResourcePermissionDto);

    /**
     * 查询列表
     * @param roleResourcePermissionDto
     * @return
     */
    List<RoleResourcePermissionDto> selectList(RoleResourcePermissionDto roleResourcePermissionDto);

    /**
     * 根据角色字符串查询角色资源权限关联列表
     * @param roleIds
     * @return
     */
    List<RoleResourcePermissionDto> selectListByRoleIds(String roleIds);

}
